package com.springcloud.demo.test.kettle.controller;

import com.springcloud.demo.test.kettle.entity.FileEntity;
import com.springcloud.demo.test.kettle.service.TestService;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhouyang
 * @Description
 * @date 2018/08/23
 */
@RestController
public class test {

    TestService testService = new TestService();

    @PutMapping("test")
    public long test(@RequestBody FileEntity fileEntity){
        long l = testService.runTrans(fileEntity.getParams(), fileEntity.getkPath());
        return l;
    }


}
